package domain.lexicalAnalyzerGenerator;

import domain.grammar.ExtendedNonTerminalSymbol;
import domain.grammar.ExtendedProduction;

public class CallInstruction extends Instruction {

	private String functionCall;
	public CallInstruction(ExtendedNonTerminalSymbol extendedNonTerminalSymbol) throws InstructionException {
		ExtendedProduction extendedProduction = new ExtendedProduction(extendedNonTerminalSymbol, null); 
		Function function = Function.create(extendedProduction);
		functionCall = function.getCall();
	}

	public String generateCode() {
		return functionCall + "\n";
	}
}